<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2019-11-27
 * Time: 11:03
 * 用户表
 */

namespace app\api\model;


class User extends BaseModel
{
    protected $hidden = ['update_time','delete_time'];

    public static function getOpenId($openid)
    {
        $user = self::where('openid','=',$openid)
            ->find();
        return $user;
    }

}